package com.xin.vip.singleton.lazy;

public class LazyInnerClassSingleton {

    private LazyInnerClassSingleton(){
        if(null!=LazyHandle.lazyInnerClassSingleton){
            throw new RuntimeException("不允许创建多个实例");
        }
    };

    public static final LazyInnerClassSingleton getnewLazyInnerClassSingleton(){
        return LazyHandle.lazyInnerClassSingleton;
    }


    public static class LazyHandle{
        private static  LazyInnerClassSingleton lazyInnerClassSingleton = new LazyInnerClassSingleton();
    }

}
